import request from '@/utils/request'

// 查询房间设施列表
export function listRoomFacility(query) {
  return request({
    url: '/yl/roomFacility/list',
    method: 'get',
    params: query
  })
}

// 查询房间设施所有列表
export function listAllRoomFacility(query) {
  return request({
    url: '/yl/roomFacility/listAll',
    method: 'get',
    params: query
  })
}

// 查询房间设施详细
export function getRoomFacility(id) {
  return request({
    url: '/yl/roomFacility/' + id,
    method: 'get'
  })
}

// 新增房间设施
export function addRoomFacility(data) {
  return request({
    url: '/yl/roomFacility',
    method: 'post',
    data: data
  })
}

// 修改房间设施
export function updateRoomFacility(data) {
  return request({
    url: '/yl/roomFacility',
    method: 'put',
    data: data
  })
}

// 删除房间设施
export function delRoomFacility(id) {
  return request({
    url: '/yl/roomFacility/' + id,
    method: 'delete'
  })
}
